<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>vue.js</title>
	<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
	<div id="app">
		{{ message | capitalize}}
	</div>
	<script type="text/javascript">
		var vm = new Vue({
			el: '#app',
			data: {
				message: 'helloWorld'
			},
			filters: {
				capitalize: function (value) {
					if (!value) return ''
					value = value.toString()
				    return value.charAt(0).toUpperCase() + value.slice(1)
				}
			}
		})
	</script>
</body>
</html>
